<div style="width: 500px;">
<form id="ajax_form" onsubmit="return CandidateCourse.processCourse();">
	<table class="table">
		<tbody>
			<tr>
				<td width="120" class="right rlabel"><label for="idlevel"><?php echo $this->lang->line('course_level'); ?>:</label></td>
				<td colspan="3"><div id="courseLevel"></div></td>
			</tr>
			<tr>
				<td class="right rlabel"><label for="idcoursetype"><?php echo $this->lang->line('course_course'); ?>:</label></td>
				<td colspan="3"><div id="courseType"></div></td>
			</tr>
			<tr>
				<td class="right rlabel"><label for="idstatus"><?php echo $this->lang->line('course_status'); ?>:</label></td>
				<td colspan="3"><div id="courseStatus"></div></td>
			</tr>
			<tr>
				<td class="right rlabel"><label for="startdate"><?php echo $this->lang->line('course_startdate'); ?>:</label></td>
				<td width="130">
				<input type="text" class="inputdiv maskdate" value="<?php echo $startdate; ?>" id="startdate" name="startdate" /></td>
				<td class="right rlabel" width="35"><label for="finishdate"><?php echo $this->lang->line('course_finishdate'); ?>:</label></td>
				<td>
				<input type="text" class="inputdiv maskdate" value="<?php echo $finishdate; ?>" id="finishdate" name="finishdate" /></td>
			</tr>
			<tr>
				<td class="right rlabel"><label for="institution"><?php echo $this->lang->line('course_institution'); ?>:</label></td>
				<td colspan="3">
					<input type="text" class="inputdiv" value="<?php echo $institution; ?>" id="institution" name="institution" />
				</td>
			</tr>
			<tr>
				<td class="right rlabel"><label for="idcountry"><?php echo $this->lang->line('course_country'); ?>:</label></td>
				<td colspan="3"><div id="ajaxCountry"></div></td>
			</tr>
			<tr>
				<td class="right rlabel"><label for="idstate"><?php echo $this->lang->line('course_state'); ?>:</label></td>
				<td colspan="3"><div id="ajaxState"></div></td>
			</tr>
			<tr>
				<td colspan="4" class="center">
					<label for="btnEnter"><input type="submit" id="btnEnter" class="submit" value="<?php echo $this->lang->line('course_save'); ?>" /></label>
				</td>
			</tr>
		</tbody>
	</table>
	<div id="result_ajax"></div>
	<input type="hidden" value="<?php echo $id_course; ?>" name="idcourse" id="idcourse" />
</form>
</div>
<script type="text/javascript">
CandidateCourse.getCourseLevel();
<?php 
	if (isset($set_level_value)) echo $set_level_value;
?>
CandidateCourse.getCourseType();
CandidateCourse.getCourseStatus();
getCountry('#ajaxCountry');
getState('#ajaxState');
$(".maskdate").mask("99/99/9999");
<?php 
	if (isset($extrascript)) echo $extrascript;
?>
</script>